<%-- Fragmento com trecho utilizado no menu de navegacao. --%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div>
	<ul class="nav nav-list">

		<c:if test="${professor!= null}">
			<li class="${active == 'disciplinas' ? 'active' : ''}">
				<a href="/web/listar-disciplinas"><i class="icon-list"></i> Disciplinas</a>
			</li>		
			<li class="${active == 'alunos' ? 'active' : ''}">
				<a href="/web/listar-alunos"><i class="icon-user"></i> Alunos</a>
	        </li>
			<li class="divider"></li>
		</c:if>
        <c:if test="${professor.admin}">
        	<li class="${active == 'professores' ? 'active' : ''}">
				<a href="/admin/listar-professores"><i class="icon-lock"></i> Professores</a>
	        </li>
	        <li class="${active == 'admin' ? 'active' : ''}">
				<a href="/admin"><i class="icon-lock"></i> Admin</a>
	        </li>
	        <li class="divider"></li>
        </c:if>
		<li class="${active == 'sobre' ? 'active' : ''}">
			<a href="/sobre"><i class="icon-book"></i> Sobre</a>
		</li>
	</ul>
</div>
